package com.dmagic.cms.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.hibernate.annotations.Where;

import com.dmagic.cms.common.Constants;
import com.dmagic.cms.common.entity.ModifyInfoEntity;

@Entity
@Table(name = "dmagic_heat_map")
@Where(clause = ModifyInfoEntity.ISOBSOLETE_DATE_IS_NULL)
public class HeatMap extends ModifyInfoEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5062618039493346328L;

	private Long heatMapId;

	private Boolean heatMapStatus = false;

	private Long linkedHeatMapId;

	private String heatMapDesc;

	private Long fileInfoId;

	private Long uploadFileInfoId;

	public HeatMap() {
		super();
	}

	@Id
	@GeneratedValue(strategy = GenerationType.TABLE, generator = Constants.ID_GENERATOR)
	@TableGenerator(name = Constants.ID_GENERATOR, // Generator Name which same
													// with
	// generator
	table = Constants.ID_GENERATOR, // Generator Table Name
	pkColumnName = Constants.PK_COLUMNNAME, // Generator Table column Id name
	valueColumnName = Constants.VALUE_COLUMN_NAME, // Generator Table column Id
													// value
	pkColumnValue = "HeatMap", // entity Name
	allocationSize = (Constants.ID_GENERATOR_ALLLCATIONSIZE), initialValue = Constants.ID_GENERATOR_INITIALVALUE)
	public Long getHeatMapId() {
		return heatMapId;
	}

	public void setHeatMapId(Long heatMapId) {
		this.heatMapId = heatMapId;
	}

	public Boolean getHeatMapStatus() {
		return heatMapStatus;
	}

	public void setHeatMapStatus(Boolean heatMapStatus) {
		this.heatMapStatus = heatMapStatus;
	}

	public Long getLinkedHeatMapId() {
		return linkedHeatMapId;
	}

	public void setLinkedHeatMapId(Long linkedHeatMapId) {
		this.linkedHeatMapId = linkedHeatMapId;
	}

	public Long getFileInfoId() {
		return fileInfoId;
	}

	public void setFileInfoId(Long fileInfoId) {
		this.fileInfoId = fileInfoId;
	}

	public String getHeatMapDesc() {
		return heatMapDesc;
	}

	public void setHeatMapDesc(String heatMapDesc) {
		this.heatMapDesc = heatMapDesc;
	}

	public Long getUploadFileInfoId() {
		return uploadFileInfoId;
	}

	public void setUploadFileInfoId(Long uploadFileInfoId) {
		this.uploadFileInfoId = uploadFileInfoId;
	}

}
